# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libluksde-python
_pkgname=libluksde-python
pkgver=20240503
pkgrel=3
pkgdesc='Python bindings module for libluksde.'
url='https://pypi.org/project/libluksde-python/'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('cfc166b1a5664a574caa178cb82fc3603e99a1f0a03a06e6f319b48ba10420b11ee5632bf29c81dae6d434c7bbb1bd4a67c250d2272b1b4afe63c2060301a406')

build() {
  cd "libluksde-$pkgver"

  python setup.py build
}

package() {
  cd "libluksde-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

